﻿import lite.mobile.lib.components.UButton;

/**
 * @author libiao2011
 */
class lite.mobile.lib.components.UImageButton extends UButton {
	public function UImageButton(name : String, depth : Number) {
		super(name, depth);
	}

	public function getType() : String {
		return "UImageButton";
	}

	// 设置 图标
	public function setLike(like : String) : Void {
		var mc : MovieClip = getCoreMC().attachMovie(like, like + "_mc", 1);
		mc._x = ($_skinMC._width - mc._width) * 0.5 ;
		mc._y = ($_skinMC._height - mc._height) * 0.5 ;
	}
}
